import request from '@/utils/request'

// 查询学生缴费分期信息列表
export function listStudentStage(query) {
  return request({
    url: '/edu/studentStage/list',
    method: 'get',
    params: query
  })
}

// 查询学生缴费分期信息详细
export function getStudentStage(stageId) {
  return request({
    url: '/edu/studentStage/' + stageId,
    method: 'get'
  })
}

// 新增学生缴费分期信息
export function addStudentStage(data) {
  return request({
    url: '/edu/studentStage',
    method: 'post',
    data: data
  })
}

// 修改学生缴费分期信息
export function updateStudentStage(data) {
  return request({
    url: '/edu/studentStage',
    method: 'put',
    data: data
  })
}

// 删除学生缴费分期信息
export function delStudentStage(stageId) {
  return request({
    url: '/edu/studentStage/' + stageId,
    method: 'delete'
  })
}

// 导出学生缴费分期信息
export function exportStudentStage(query) {
  return request({
    url: '/edu/studentStage/export',
    method: 'get',
    params: query
  })
}